Skip to content

Conversation

stevensJourney
Copy link
Contributor

Overview

This adds an onChange method to the PowerSync client API.

This method watches a Set of table names and emits the subset of tables which changed whenever a relevant table has a changed.

The logic here is consistent with other SDKs. The input table names are flat mapped to include watching changes for internal table names. The result is then converted to friendly table names.

@stevensJourney stevensJourney requested a review from simolus3 April 24, 2025 09:23
@stevensJourney stevensJourney marked this pull request as ready for review April 24, 2025 09:23
Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with these changes, also thanks for updating the docs! I think throttleMs deserves a bit more detail in the docs, but it wasn't documented at all before so this is alreay a big upgrade 😄

@stevensJourney stevensJourney merged commit a7b0eb5 into main Apr 24, 2025
3 checks passed
@stevensJourney stevensJourney deleted the onchange branch April 24, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants